<?php
Yii::app()->clientScript->registerScriptFile($this->staticsPath."/frontend/js/jquery.js",CClientScript::POS_HEAD);
Yii::app()->clientScript->registerCssFile($this->staticsPath."/css/global.css");
Yii::app()->clientScript->registerCssFile($this->staticsPath."/css/index.css");
Yii::app()->clientScript->registerCssFile($this->staticsPath."/css/font-awesome.min.css");
Yii::app()->clientScript->registerCssFile($this->staticsPath."/Font-Awesome-3.2.1/css/font-awesome.min.css");
Yii::app()->clientScript->registerCss("CSS1","
    .cont_box img{
        height: 200px;
    }
    .wrap{
        width:100%;
        margin-top: 55px;
    }
    .wrap .left{
        width:30%;
        height:60%;
        float: left;
        padding: 20px;
    }
    .wrap .left .icon-user{
        font-size:80px;
    }
    .wrap .right {
        float: right;
        height: 60%;
        padding-right: 25px;
        padding-top: 65px;
        width: 69%;
    }
    .wrap .right p{
        margin-bottom:10px;
    }
   #loadings {
        left: 50%;
        position: absolute;
        top: 50%;
    }

");
?>
<style type="text/css">
    .main-box {
        background: #FDF5E1 url("<?php echo $this->staticsPath."/img/mypointlist.png" ?>") no-repeat scroll 0 0 / 100% auto;
        height: 100%;
        left: 0;
        margin: 0 auto;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: -1;
    }
    body{
        background:  #F9E9BB url("<?php echo $this->staticsPath."/img/list.png" ?>") no-repeat scroll 0 0;
    }
    .wrap .book{
        width: 50%;
    }
    .book_box{
        padding: 0 20px;
    }
    .imgbox li {
        float: left;
        margin-bottom: 10px;
        margin-right: 10px;
        width: 46%;
    }
    .list_cont {
        padding: 0 1px 2px;
        position: relative;
    }
    .list_cont .list_box {
        background: #fff none repeat scroll 0 0;
        box-shadow: 2px 2px 6px #666;
        overflow: hidden;
        position: relative;
    }
    .imgbox{
        width: 80%;
        margin: 0 auto;
    }
    .imgbox li a.img_type {
        height: 100%;
        overflow: hidden;
        width: 100%;
    }
    .imgbox li a {
        display: block;
    }

    #min .item .list_box .img_type .im {
        height: 180px;
        width: auto;
        display: block;
        margin: 0 auto;
    }
    .minwrap img, nav img {
        display: block;
        height: auto;
        margin: 0 auto;
        text-align: center;
        vertical-align: middle;
    }
    #min .item .list_box .tit {
        background: rgba(255, 255, 255, 0.8) none repeat scroll 0 0;
        bottom: 0;
        color: #0066b3;
        font-size: 14px;
        height: 22px;
        line-height: 22px;
        position: absolute;
        text-align: center;
        width: 100%;
    }
    #loading {
        font-size: 30px;
        height: 50px;
        margin: 0 auto;
        text-align: center;
        width: 100px;
    }
    .alert-error {
        color: #b94a48;
    }
    .alert {
        border-radius: 4px;
        margin-bottom: 20px;
        padding: 8px 35px 8px 14px;
        text-align: center;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    .header {
        position: fixed;
        top:0;
    }
    .wrap .header_box {
        height: 175px;
        position: relative;
    }
    .wrap .header_box .imgbg{

        height: 120px;
        width: 120px;
        position: absolute;
        left: 15px;
        top: 55px;
    }
    .wrap .header_box .imgbg .box{
        width: 100%;
        height: 100%;
        position: relative;
    }
    .wrap .header_box .imgbg .box img {
        border-radius: 50%;
        height: 80%;
        left: 15px;
        position: absolute;
        top: 15px;
        width: 80%;
    }
    .wrap .header_box .hname {
        height: 120px;
        left: 130px;
        position: absolute;
        top: 50px;
        width: 120px;
    }
    .wrap .header_box .phh {
        height: 120px;
        left: 230px;
        position: absolute;
        top: 50px;
        width: 120px;
    }
    .wrap .header_box .hname p{
        color: #0066b3;
        font-size: 20px;
    }
</style>
<div class="data" >
    <div class="main-box"></div>
    <header class="homeHder header">
        <a href="<?php echo $this->createUrl('index',array('openid'=>$openid)) ?>">
            <div class="hder_return flol">

                <i class="size fa fa-angle-left"></i>

            </div>
        </a>
        <div class="hder_logo">积分排行</div>
    </header>
    <section class="wrap">
        <?php if($user_info->role==1){ ?>
            <div class="header_box">
                <div id="imgbg" class="imgbg">
                    <div class="box">
                        <?php if($user_info->image){ ?>
                            <img src="<?php echo $user_info->image ?>">
                        <?php }else{ ?>
                            <?php if($user_info->sex ==1){ ?>
                                <img src="<?php echo $this->staticsPath."/img/tx1.jpg" ?>">
                            <?php }else{ ?>
                                <img src="<?php echo $this->staticsPath."/img/tx2.jpg" ?>">
                            <?php } ?>
                        <?php } ?>
                    </div>
                </div>
                <div class="hname">
                    <span style="color: #0066b3; font-size: 22px; text-align: left; margin-top: 35px; "><?php echo $user_info->user_name ?></span>
                    <span style="color: #0066b3; text-align: left; font-size: 22px; margin-top: 20px; margin-bottom: 25px;">积分:<b ><?php echo $user_info->point ?></b></span>
                </div>
                <div class="phh">
                    <div class="pm"><?php echo $paihang; ?></div>
                    <div class="pmimg"></div>
                </div>
            </div>
        <?php }elseif($user_info->role==2){ ?>
            <div class="header_box">
                <div id="imgbg" class="imgbg">
                    <div class="box">
                        <?php if($child_info->image){ ?>
                            <img src="<?php echo $child_info->image ?>">
                        <?php }else{ ?>
                            <?php if($child_info->sex ==1){ ?>
                                <img src="<?php echo $this->staticsPath."/img/tx1.jpg" ?>">
                            <?php }else{ ?>
                                <img src="<?php echo $this->staticsPath."/img/tx2.jpg" ?>">
                            <?php } ?>
                        <?php } ?>
                    </div>
                </div>
                <div class="hname">
                    <p style="color: #0066b3; font-size: 22px; text-align: left; margin-top: 35px; "><?php echo $child_info->user_name ?></p>
                    <p style="color: #0066b3; text-align: left; font-size: 22px; margin-top: 20px; margin-bottom: 25px;">积分:<b ><?php echo $child_info->point ?></b></p>
                </div>
                <div class="ph">
                    <div class="pm"><?php echo $paihang; ?></div>
                    <div class="pmimg"></div>
                </div>
            </div>
        <?php }else{ ?>
            <div class="header_box"></div>
        <?php } ?>
    </section>

    <br>
    <br>
    <br>
    <br>
</div>
